part of 'cpc_report_bloc.dart';

sealed class CpcReportState extends Equatable {
  const CpcReportState();
}

final class CpcReportInitial extends CpcReportState {
  @override
  List<Object> get props => [];
}


// 运单管理状态
class CpcWaybillManagementLoadingState extends CpcReportState {

  double progress;

  CpcWaybillManagementLoadingState({required this.progress});

  @override
  List<Object> get props => [progress];

}
class CpcWaybillManagementState extends CpcReportState {
  String message;

  final List<WaybillManagementBean> waybillManagementList;
  CpcWaybillManagementState({required this.waybillManagementList, required this.message});

  @override
  List<Object> get props => [waybillManagementList];

}

// 中邮状态
class CpcChinaPostLuggageLoadingState extends CpcReportState {
  double progress;

  CpcChinaPostLuggageLoadingState({required this.progress});

  @override
  List<Object> get props => [progress];

}
class CpcChinaPostLuggageState extends CpcReportState {
  String message;

  final List<ChinaPostLuggageBean> chinaPostLuggageList;
  CpcChinaPostLuggageState({required this.chinaPostLuggageList, required this.message});

  @override
  List<Object> get props => [chinaPostLuggageList];

}

// Feeitemlist状态
class CpcFeeItemLoadingState extends CpcReportState {
  final double progress;

  const CpcFeeItemLoadingState({required this.progress});

  @override
  List<Object> get props => [progress];

}
class CpcFeeItemState extends CpcReportState {
  String message;

  final List<FeeItemBean> feeItemList;
  CpcFeeItemState({required this.feeItemList, required this.message});

  @override
  List<Object> get props => [feeItemList, message];

}

// CpcEvent状态
class CpcLuggeasyLoadingState extends CpcReportState {
  final double progress;
  CpcLuggeasyLoadingState({required this.progress});
  @override
  List<Object> get props => [progress];

}
class CpcLuggeasyState extends CpcReportState {
  String message;

  final List<LuggeasyBean> luggeasyList;
  CpcLuggeasyState({required this.luggeasyList, required this.message});

  @override
  List<Object> get props => [luggeasyList, message];

}


// CpcEvent状态
class CpcDataMergeSuccessState extends CpcReportState {
  String message;

  final List<CpcResultBean> cpcResultList;
  CpcDataMergeSuccessState({required this.cpcResultList, required this.message});

  @override
  List<Object> get props => [cpcResultList, message];

}


class CpcWriteFileLoadingState extends CpcReportState {

  final double progress;

  const CpcWriteFileLoadingState( {required this.progress});
  @override
  List<Object?> get props => [progress];

}

class CpcWriteFileSuccessState extends CpcReportState {
  const CpcWriteFileSuccessState();
  @override
  List<Object?> get props => [];

}
class CpcWriteFileFailureState extends CpcReportState {
  final String failureMessage;
  const CpcWriteFileFailureState({required this.failureMessage});
  @override
  List<Object?> get props => [failureMessage];

}
